
package com.yimixian.app.address;

import com.baidu.mapapi.model.LatLng;
import com.baidu.mapapi.search.core.PoiInfo;
import com.yimixian.app.model.Address;

import java.io.Serializable;

public class ShortAddress extends Address implements Serializable{

    public ShortAddress(PoiInfo poiInfo, LatLng latLng) {
        super(
                0, // id
                null, // name
                null, // gender
                null, // tel
                null,
                poiInfo.city,
                poiInfo.uid,
                poiInfo.name,
                poiInfo.address,
                null, // roomNo
                null, // tag
                String.valueOf(latLng.longitude),
                String.valueOf(latLng.latitude),
                null, false);
    }
}
